/*
** team.h for  in /home/faye_m//zappy
** 
** Made by mouhamed faye
** Login   <faye_m@epitech.net>
** 
** Started on  Tue Jun 21 20:20:33 2011 mouhamed faye
** Last update Fri Jul  1 12:54:02 2011 mouhamed faye
*/
#ifndef __TEAM__
#define __TEAM__
#include "request.h"
typedef struct request
{
  char *req;
  int	time;
  int	delay_req;
  int	nb_req;
  struct request *next;
} Class_request;

typedef struct player
{
  int	num_joueur;
  int	ttl_joueur;
  int	max_req;
  int	nb_player;
  Class_request *list_request;
  struct player *next;
} Class_player;

typedef	struct team
{
  char	*team_name;
  int	nb_player;
  int	max_player;
  int	max_req;
  Class_player *list_player;
  struct team *next;
} Class_team;

void            display_team(Class_team *data, int max_users_per_teams);
void		send_all_teams(Class_team *team, int socket);
Class_team	*del_player(Class_team  *team, int  socket);
#endif
